﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterCustomerLogin.master" AutoEventWireup="true" CodeBehind="RegisterLogin.aspx.cs" Inherits="Project_Udrinkwater.CustomerLogin.RegisterLogin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
     <div class="HeaderText">ข้อมูลสมาชิก</div>
    <table style="width:100%;">
        <tr>
            <td style="width: 291px; text-align: right;">
                คำนำหน้า :</td>
            <td style="width: 217px">
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem>นาย</asp:ListItem>
                    <asp:ListItem>นาง</asp:ListItem>
                    <asp:ListItem>นางสาว</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="width: 533px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="height: 25px; width: 291px; text-align: right;">
                ชื่อ :</td>
            <td style="height: 25px; width: 217px">
                <dx:ASPxTextBox ID="txtFName" runat="server" Width="170px" 
                    EnableClientSideAPI="True">
                    <ValidationSettings ValidationGroup="RegisterUserValidationGroup">
                        <RequiredField ErrorText="กรุณากรอกข้อมูล" IsRequired="true" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td style="height: 25px; width: 533px">
                &nbsp;</td>
            <td style="height: 25px">
            </td>
        </tr>
        <tr>
            <td style="height: 23px; width: 291px; text-align: right;">
                นามสกุล :</td>
            <td style="height: 23px; width: 217px">
                <dx:ASPxTextBox ID="txtLname" runat="server" Width="170px">
                    <ValidationSettings ValidationGroup="RegisterUserValidationGroup">
                        <RequiredField ErrorText="กรุณากรอกข้อมูล" IsRequired="true" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td style="height: 23px; width: 533px">
                &nbsp;</td>
            <td style="height: 23px">
            </td>
        </tr>
        <tr>
            <td style="width: 291px; text-align: right;">
                บ้านเลขที่ / หมู่ :</td>
            <td style="width: 217px">
                <dx:ASPxTextBox ID="txtAdress" runat="server" Width="170px">
                    <ValidationSettings ValidationGroup="RegisterUserValidationGroup">
                        <RequiredField ErrorText="กรุณากรอกข้อมูล" IsRequired="true" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td style="width: 533px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="height: 25px; width: 291px; text-align: right;">
                จังหวัด :</td>
            <td style="height: 25px; width: 217px">
                <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="True" 
                    DataSourceID="SqlDataProvince" DataTextField="PROVINCE_NAME" 
                    DataValueField="PROVINCE_ID" Width="170px">
                </asp:DropDownList>
            </td>
            <td style="height: 25px; width: 533px">
                <asp:SqlDataSource ID="SqlDataProvince" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:DB_UdrinkConnectionString %>" 
                    SelectCommand="SELECT PROVINCE_ID, PROVINCE_NAME FROM TB_Province">
                </asp:SqlDataSource>
            </td>
            <td style="height: 25px">
            </td>
        </tr>
        <tr>
            <td style="width: 291px; text-align: right;">
                อำเภอ :</td>
            <td style="width: 217px">
                <asp:DropDownList ID="ddlAmphur" runat="server" AutoPostBack="True" 
                    DataSourceID="SqlDataAmphur" DataTextField="AMPHUR_NAME" 
                    DataValueField="AMPHUR_ID" Width="170px">
                </asp:DropDownList>
            </td>
            <td style="width: 533px">
                <asp:SqlDataSource ID="SqlDataAmphur" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:DB_UdrinkConnectionString %>" 
                    
                    SelectCommand="SELECT * FROM [TB_Amphur] WHERE ([PROVINCE_ID] = @PROVINCE_ID)">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlProvince" Name="PROVINCE_ID" 
                            PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 291px; text-align: right;">
                ตำบล :</td>
            <td style="width: 217px">
                <asp:DropDownList ID="ddlDistrict" runat="server" AutoPostBack="True" 
                    DataSourceID="SqlDataDistrict" DataTextField="DISTRICT_NAME" 
                    DataValueField="DISTRICT_ID" Width="170px">
                </asp:DropDownList>
            </td>
            <td style="width: 533px">
                <asp:SqlDataSource ID="SqlDataDistrict" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:DB_UdrinkConnectionString %>" 
                    SelectCommand="SELECT [DISTRICT_ID], [DISTRICT_NAME], [AMPHUR_ID], [PROVINCE_ID] FROM [TB_District] WHERE (([PROVINCE_ID] = @PROVINCE_ID) AND ([AMPHUR_ID] = @AMPHUR_ID))">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlProvince" Name="PROVINCE_ID" 
                            PropertyName="SelectedValue" Type="Int32" />
                        <asp:ControlParameter ControlID="ddlAmphur" Name="AMPHUR_ID" 
                            PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="height: 25px; width: 291px; text-align: right;">
                รหัสไปรษณีย์ :</td>
            <td style="height: 25px; width: 217px">
                <dx:ASPxTextBox ID="txtPostcode" runat="server" Width="170px">
                    <ValidationSettings ValidationGroup="RegisterUserValidationGroup">
                        <RequiredField ErrorText="กรุณากรอกข้อมูล" IsRequired="true" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td style="height: 25px; width: 533px">
                &nbsp;</td>
            <td style="height: 25px">
            </td>
        </tr>
        <tr>
            <td style="width: 291px; text-align: right;">
                เบอร์โทรศัพท์ : </td>
            <td style="width: 217px">
                <dx:ASPxTextBox ID="txtPhone" runat="server" Width="170px"></dx:ASPxTextBox>
            </td>
            <td style="width: 533px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 291px; text-align: right;">
                เบอร์ Fax :</td>
            <td style="width: 217px">
                <dx:ASPxTextBox ID="txtFax" runat="server" Width="170px">
                </dx:ASPxTextBox>
            </td>
            <td style="width: 533px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 291px; text-align: right;">
                E-Mail :</td>
            <td style="width: 217px">
                <dx:ASPxTextBox ID="txtE_mail" runat="server" Width="170px">
                </dx:ASPxTextBox>
            </td>
            <td style="width: 533px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 291px; text-align: right;">
                &nbsp;</td>
            <td style="width: 217px">
                &nbsp;</td>
            <td style="width: 533px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 291px">
                &nbsp;</td>
            <td style="width: 217px">
                <table style="width: 100%">
                    <tr>
                        <td>
                            <dx:ASPxButton ID="bt_Edit" runat="server" Text="บันทึกการแก้ไข" ValidationGroup="RegisterUserValidationGroup" 
                                Theme="Office2003Blue" onclick="bt_Edit_Click">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
            <td style="width: 533px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 291px">
                &nbsp;</td>
            <td style="width: 217px">
                &nbsp;</td>
            <td style="width: 533px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </asp:Content>
